<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://shiro.apache.org/tags" prefix="shiro" %>
<html>
<head>
  <title>Title</title>
  <%@include file="/static/common/common.jsp" %>
  <script type="text/javascript" src="/static/js/organization.js"></script>
</head>
<body>
<table id="organization_datagrid"></table>
<div id="tb">

  <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" data-cmd="add">新增</a>
  <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" data-cmd="edit">编辑</a>
  <shiro:hasPermission name="employee:changeState">
    <a href="#" id="changeState_btn" class="easyui-linkbutton" data-options="iconCls:'icon-man',plain:true"
       data-cmd="changeState">解除</a>
  </shiro:hasPermission>
  <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" data-cmd="reload">刷新</a>
  <input name="keyword" class="easyui-textbox" prompt="请输入机构名或编号">
  <select class="easyui-combobox" name="opinion" style="width:124px;"
          data-options="panelHeight:'auto'">
    <option value="-1">--请选择--</option>
    <option value="1">--合作--</option>
    <option value="0">--解除--</option>
  </select>
  <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true" data-cmd="query"></a>
</div>
<div id="organization_dialog">
  <form id="organization_form" method="post">
    <input id="organizationId" name="id" type="hidden">
    <table align="center" style="margin: 15px;">
      <tr>
        <td>机构代码：</td>
        <td><input type="text" name="sn" class="easyui-textbox" required="true" prompt="请输入机构代码"
        ></td>
      </tr>
      <tr>
        <td>机构名称：</td>
        <td><input type="text" name="name" class="easyui-textbox"></td>
      </tr>
      <tr>
        <td>法人代表：</td>
        <td><input type="text" name="legalPerson" class="easyui-textbox"></td>
      </tr>
      <tr>
        <td>法人证件号：</td>
        <td><input type="text" name="identityInfo" class="easyui-textbox"></td>
      </tr>
      </tr>
      <tr>
        <td>联系电话：</td>
        <td><input type="tel" name="tel" class="easyui-textbox"></td>
      </tr>
      </tr>
      <tr>
        <td>联系地址：</td>
        <td><input type="text" name="address" class="easyui-textbox"></td>
      </tr>
      <tr id="cooperation_tr">
        <td>合作状态：</td>
        <td><input type="text" name="cooperation" class="easyui-combobox"
                   data-options='data:[{
                                "value":"1",
                                "text":"合作"
                                },{
                                "value":"0",
                                "text":"解除"
                                }],textField:"text",
                                valueField:"value",panelHeight:"auto"'>
        </td>
      </tr>

      <div id="btn">
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true" data-cmd="save">保存</a>
        <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel',plain:true" data-cmd="cancel">取消</a>
      </div>
    </table>
  </form>
</div>
</body>
</html>
